package com.zhihuiweijian.demo.service;

import com.zhihuiweijian.demo.model.User;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;
import java.util.Set;



public interface UserService {

	/**
	 * 根据用户名查找用户
	 * @param username
	 * @return
	 */

	User findByUsername(String username);

	/**
	 * 查找用户的菜单权限标识集合
	 * @param
	 * @return
	 */
	Set<String> findPermissions(String username);

	/**
	 * 查找所有用户
	 * @return
	 */
	List<User> findAll();

	List<String> findRolePermission(String name);

	void deleteByPrimaryKey(Long id);

	void updateByPrimaryKey(User user);

	void insert(User user);

	User findByPrimaryKey(Long id);
}
